BK Set Font Characters


BK Set Font Characters Characters$

Description

You can use this command to set the order of which characters appear in the bitmap font. The first character being the character on the top left, and reading to the right and down. These characters are stored in the current Spacing Set, as set by BK Set Font Source. The default Spacing Set is 0.
The number of characters doesn't have to be exactly the same as the number of characters in the bitmap font. If the string contains less characters, then you simply won't be able to use the bitmap characters after the last position specified in Characters$. If there are too many, then BMP Font Kit might produce unpredictable results, such as letters flipped upside down. If characters are repeated then only the last character's position is stored.
Note: There is one 'special' character, and that is the carriage return (chr$(13)). You can use it in the character list, but it will never be displayed, as it causes BK Text to start a new line.

Take for example this bitmap font:

Video Phreak by Scraggle
Bitmap font created by Scraggle - DarkBasic Pro Forum

Then Characters$ should look like this: " !?#$%&'()*+,-./0123456789:;‹=›?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_'abcdefghijklmnopqrstuvwxyz{|}~     "
(This one is starting with a space)

Parameters

Characters$StringThe characters.


Index